/**************************************************************************************
 * [Project]
 *       meyou
 * [Package]
 *       com.meyou.utils
 * [FileName]
 *       L.java
 * [Copyright]
 *       Copyright  2015 LeaAnder All Rights Reserved.
 * [History]
 *       Version          Date                       Author                            Record
 *--------------------------------------------------------------------------------------
 *       1.0.1           2015-11-26 下午3:22:05        LeaAnder (popularli@163.com)       Create
 **************************************************************************************/
package com.qiankan.qmsj.utils;

import android.util.Log;

/********************************************************************
 * [Summary]
 *       Log统一管理类
 * [Remarks]
 *       这里写关联类、备注
 * [Author]
 *       李志朋
 *******************************************************************/
public class L {
	private L(){
		throw new UnsupportedOperationException("cannot be instantiated");
	}

	public static boolean isDebug = true;// 是否需要打印bug，可以在application的onCreate函数里面初始化
	private static final String TAG = "LeaAnder_MeYou";

	// 下面四个是默认tag的函数
	public static void i(String msg){
		if (isDebug)
			Log.i(TAG, msg);
	}

	public static void d(String msg){
		if (isDebug)
			Log.d(TAG, msg);
	}

	public static void e(String msg){
		if (isDebug)
			Log.e(TAG, msg);
	}

	public static void v(String msg){
		if (isDebug)
			Log.v(TAG, msg);
	}
	
	public static void w(String msg){
		if(isDebug)
			Log.w(TAG, msg);
	}

	// 下面是传入自定义tag的函数
	public static void i(String tag, String msg){
		if (isDebug)
			Log.i(tag, msg);
	}

	public static void d(String tag, String msg){
		if (isDebug)
			Log.i(tag, msg);
	}

	public static void e(String tag, String msg){
		if (isDebug)
			Log.i(tag, msg);
	}

	public static void v(String tag, String msg){
		if (isDebug)
			Log.i(tag, msg);
	}
	public static void w(String tag, String msg){
		if (isDebug)
			Log.w(tag, msg);
	}
}
